<?php
class HdTag extends Tag{
	public $Tag=array(
		'arclist'=>array('block'=>1,'level'=>4)
		);
	public function _arclist($attr,$content,&$view){
		$row=$attr['row'];
		$php=<<<str
		<?php \$db = M('news');
		\$result = \$db->limit($row)->all();
		foreach(\$result as \$field ):?>
str;
		$php.=$content;
	$php.="<?php endforeach;?>";
		return $php;

	}
}
?>